<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"  %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<style type="text/css">
<!--
.STYLE2 {
	font-size: 13px;
	color: #FFFFFF;
}
.STYLE3 {color: #FFFFFF}
-->

.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #000000;
}

</style>
<style type="text/css">
#senfe { 
width: 92%; 

} 

} 
</style> 
<script language="javascript"> 
function senfe(o,a,b,c,d){ 
var t=document.getElementById(o).getElementsByTagName("tr"); 
for(var i=0;i<t.length;i++){ 
t[i].style.backgroundColor=(t[i].sectionRowIndex%2==0)?a:b; 
t[i].onclick=function(){ 
if(this.x!="1"){ 
this.x="1";//本来打算直接用背景色判断，FF获取到的背景是RGB值，不好判断 
this.style.backgroundColor=d; 
}else{ 
this.x="0"; 
this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b; 
} 
} ;
t[i].onmouseover=function(){ 
if(this.x!="1")this.style.backgroundColor=c; 
} ;
t[i].onmouseout=function(){ 
if(this.x!="1")this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b; 
} ;
} 
} 
</script> 


<table width=95% border="0" align="center" cellspacing = 1 cellpadding = 2   id="senfe" >

  <tr>

	<td bgcolor="#507CD1"  font-size=13px><span class="STYLE2">部门名称</span></td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">姓名</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">分属科室</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">IP分机</td>
	<td  bgcolor="#507CD1" font-size=13px><span class="STYLE2">直线电话</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">直线虚拟号</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">手机</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">虚拟网号码</td>
	<td bgcolor="#507CD1" font-size=13px><span class="STYLE2">EMAIL地址</td>

   
  </tr>

<!-- <table class="table table-bordered table-condensed table-hover tb">
	<tr>
		<td>部门</td>
		<td>姓名</td>
		<td>分属科室</td>
		<td>IP分机</td>
		<td>直线电话</td>
		<td>直线虚拟号</td>
		<td>手机</td>
		<td>虚拟网号码</td>
		<td>邮箱地址</td>
	</tr> -->
	<c:forEach items="${txlList }" var="txl">
	<tr>
		<td bordercolor="1" class="style1">${txl.bumen }</td>
		<td bordercolor="1" class="style1">${txl.name }</td>
		<td bordercolor="1" class="style1">${txl.keshi }</td>
		<td bordercolor="1" class="style1">${txl.ip }</td>
		<td bordercolor="1" class="style1">${txl.zhixian }</td>
		<td bordercolor="1" class="style1">${txl.zhixianxuni}</td>
		<td bordercolor="1" class="style1">${txl.mob }</td>
		<td bordercolor="1" class="style1">${txl.xunihao }</td>
		<td bordercolor="1" class="style1">${txl.email }</td>
	</tr>
</c:forEach>
</table>

<script language="javascript"> 
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景"); 
senfe("senfe","#fff","#EFF3FB","#cfc","#00FF00"); 
</script> 
